The
IOleContainer::EnumObjects Method
This method
is used to enumerate over all the OLE objects contained in a document or form,
returning an interface pointer for each OLE object. The container must return
pointers to each OLE object that shares the same container. Nested forms or nested controls must also be
enumerated.
Some containers
implement extender controls, which wrap non-ActiveX Controls, and then return
pointers to these extender controls as a form is enumerated. This behavior
enables ActiveX Controls and ActiveX Control containers to integrate well with
non-ActiveX Controls, and is thus recommended, but not required.